package com.client.web;

import com.client.service.ClientDemoTwoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.rmi.MarshalledObject;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * Created by CHUMI on 2018/1/2.
 */
@RestController
public class ClientDemoTwoController {

    @RequestMapping(value = "/clientDemoTwoForTest1", method = RequestMethod.GET)
    public List<Map<String,Object>> testClientDemoTwo(@RequestParam String  name){
        List<Map<String,Object>> list=new ArrayList<Map<String,Object>>();
        Map<String,Object>  map=new HashMap<String,Object>();
        map.put("id","1");
        map.put("name","mx");
        map.put("age","23");
        map.put("sex","1");
        list.add(map);
        return  list;
    }
}
